package Meituan;

import java.text.DecimalFormat;

/**
 * @author: leiwenkang
 * @date: 2019/11/5
 * @time: 15:53
 */
public class Test33 {
    public static void main(String[] args) {
        String price1 = new DecimalFormat("0.##").format(3.00);
        double price2 = Double.parseDouble(price1);
        System.out.println(price1);
        System.out.println(price2);
    }
}
